lay('#version').html('-v'+ laydate.v);

//执行一个laydate实例
//接听
laydate.render({
    elem: '.answerTime', //指定元素
    format: 'yyyy-MM-dd HH:mm:ss',
    type:'datetime'
});
//挂断
laydate.render({
    elem: '.hangUpTime', //指定元素
    format: 'yyyy-MM-dd HH:mm:ss',
    type:'datetime'
});
//处理时间
laydate.render({
    elem: '.disposeTime', //指定元素
    format: 'yyyy-MM-dd HH:mm:ss',
    type:'datetime'
});

function popupDialog(options) {
    width = options.width || '85%';
    height = options.height || '85%';
    var index = layer.open({
        type: 2,
        area: [height, width],
        fix: false,
        maxmin: false,
        shade: 0.3,
        title: options.title,
        content: options.url,
        // btn: ['关闭'],
        // 弹层外区域关闭
        offset:'t',
        shadeClose: true,
        // yes: callback,
        cancel: function(index) {
            return true;
        }
    });
}